<template>
  <div class="search-box">
    <h3 class="search-title"><i class="fas fa-search"></i>搜索</h3>
    <div class="search-container">
      <i class="fas fa-search search-icon"></i>
      <input type="text" class="search-input" placeholder="搜索文章..." />
    </div>
  </div>
</template>

<style scoped>
.search-box {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  padding: 25px;
  transition: var(--transition);
}

.search-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--primary-rgb), 0.5);
}

.search-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-container {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 18px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: rgba(var(--bg-darker-rgb), 0.05);
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  box-shadow: var(--shadow);
}

/* @media (max-width: 768px) {
  .search-box {
    width: 100%;
  }
} */
</style>
